//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopExpress, MinishopExpressResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopExpressList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopExpressResponse>(`/uctoo/minishop_express/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopExpress = async (id: string) => {
  return requestClient.get<MinishopExpress>(`/uctoo/minishop_express/${id}`);
};

export const adductooMinishopExpress = async (data: Partial<MinishopExpress>) => {
  return requestClient.post<MinishopExpress>('/uctoo/minishop_express/add', data);
};

export const edituctooMinishopExpress = async (data: Partial<MinishopExpress>) => {
  return requestClient.post<MinishopExpress>('/uctoo/minishop_express/edit', data);
};

export const deleteuctooMinishopExpress = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_express/del', { id });
};
